package com.funsport.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.funsport.entity.Order;

/**
 * 订单服务接口
 */
public interface IOrderService extends IService<Order> {
    
    /**
     * 创建订单
     */
    Order createOrder(Long userId, String orderType, Long businessId, java.math.BigDecimal amount);
    
    /**
     * 根据订单号查询订单
     */
    Order getByOrderNo(String orderNo);
    
    /**
     * 更新订单状态为已支付
     */
    void updatePaidStatus(String orderNo, String transactionId);
    
    /**
     * 更新订单状态为已退款
     */
    void updateRefundStatus(String orderNo, java.math.BigDecimal refundAmount, String refundReason);
}

